package com.sxbbc.common.core.service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.function.common.RestResponse;
import com.sxbbc.common.core.entity.jz.SysCashRule;

/**
 * <p>
 * 平台提现规则 服务类
 * </p>
 *
 * @author leehao
 * @since 2019-04-30
 */
public interface ISysCashRuleService extends IService<SysCashRule> {

    /**
     * 保存提现规则
     * @param cashRule 提现规则对象
     * @author leehao
     * @return com.function.common.RestResponse
     */
    RestResponse editCashSetting(SysCashRule cashRule);

    /**
     * 获取提现规则
     * @param 提现类型 
     * @return
     */
	Map<String, Object> getCashRule(Integer type);
	
	/**
	 * 查询条件
	 * @param cashRule
	 * @return
	 */
	QueryWrapper<SysCashRule> queryWrapper(SysCashRule cashRule);
}
